home *** CD-ROM | disk | FTP | other *** search
- Path: info.uah.edu!oreo!gbacon
- From: gbacon@oreo (Greg Bacon)
- Newsgroups: comp.lang.c
- Subject: Re: Program to count lines in C-source ??
- Date: 17 Jan 1996 01:18:36 GMT
- Organization: The University of Alabama in Huntsville
- Message-ID: <4dhipc$lb@info.uah.edu>
- References: <50318399@brazerko.com>
- Reply-To: gbacon@CS.UAH.Edu
- NNTP-Posting-Host: oreo.aspire.cs.uah.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- brune (brune@brazerko.com) wrote:
- : I have used a tool called C-DOC that I think was from the Software
- : Blacksmiths,
- : Inc. (I do not have their address). It's cheap and counts lines of code
- : and
- : has other features. It runs on a PC/DOS. It is not the greatest but
- : handles
- : small files pretty good.
-
- : Good luck!
- : Kevin Brune
-
- Convention tells us that the number of semi-colons in a given source
- base is approximately equal to the number of lines of code. If you're
- using jolly ol' UNIX, a simple 'grep -c \; *.[ch]' will do the trick
- (if, of course, your shell does regexp globbing).
-
- Cheers,
- Greg
- --
- Greg Bacon <gbacon@cs.uah.edu>
- University of Alabama in Huntsville
- CS Department Systems Support Team
-